﻿@model IEnumerable<string>

@{
    string selector = "";
    
    foreach (var subSelector in Model)
    {
        selector += "," + subSelector;   
    }

    selector = selector.Substring(1);
}
<script type="text/javascript" src="@Url.Content("~/Scripts/tiny_mce/jquery.tinymce.js")"></script>
<script type="text/javascript">
    $().ready(function () {
        $("@selector").tinymce(
            {
                script_url: "@Url.Content("~/Scripts/tiny_mce/tiny_mce.js")"
            }
        );
    }
    );
</script>